import request from '@/utils/request'

// 查询订单列表
export function listOrder(query) {
  return request({
    url: '/bysj/order2/list',
    method: 'get',
    params: query
  })
}

// 查询订单详细
export function getOrder(orderId) {
  return request({
    url: '/bysj/order2/' + orderId,
    method: 'get'
  })
}

/*// 修改订单
export function updateOrder(data) {
  return request({
    url: '/bysj/order/edit',
    method: 'put',
    data: data
  })
}*/

// 新增评价
export function addEvaluation(data) {
  return request({
    url: '/bysj/evaluation',
    method: 'post',
    data: data
  })
}

export function updatePay(data) {
  return request({
    url: '/bysj/order2/pay',
    method: 'put',
    data: data
  })
}


